﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Keepo.Models
{
    public class PageNote
    {
        public int PageNoteId { get; set; }

        [ForeignKey("Sender")] // when "Sender" is null - the note has been sent by Admin
        public int? SenderId { get; set; }
        public virtual User Sender { get; set; }

        [ForeignKey("Receiver")] // when "Reciever" is null - the note has been recieved by Admin
        public int? ReceiverId { get; set; }
        public virtual User Receiver { get; set; }

        public DateTime SentDate { get; set; }

        public string Text { get; set; }

        public int AlbumPageId { get; set; }
        public virtual AlbumPage AlbumPage { get; set; }
    }
}